/**
 * Created by midnite on 15/1/21.
 */

var ajaxErrorCallback = function (data) {
    alert(data.errorMessage);
};

jsf.ajax.addOnError(ajaxErrorCallback);